package com.example.demo.spring.service;

import com.example.demo.spring.spring.*;

/**
 * @className: UserService
 * @copyright: Copyright (C) 2019-2028, Inc. All rights reserved.
 * @company: 中兴新云.财务云
 * @author: 刘凯
 * @date: 2024/7/3
 * @Description: com.example.demo.spring.service
 */
@Component()
//@Scope("prototype")
public class UserService implements BeanNameAware, InitializingBean, UserServiceInterface {

    @Autowired
    private OrderService orderService;

    private String beanName;

    public void test(){
        System.out.println(orderService);
        System.out.println(beanName);
    }

    @Override
    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }

    @Override
    public void afterPropertiesSet() {
        System.out.println("fdsfdsfdgsfdsfdsfdsf");
    }
}
